﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.SeedWork;

namespace Windows.Admin.Domain
{
    public partial class ChatMessage : Entity
    {
        //聊天Id
        public long ChatLinkId { get; set; }
        // 发送方ID
        public long SenderId { get; set; }
        // 接收方ID
        public long ReceiverId { get; set; }
        // 接收方是否已读
        public bool IsRead { get; set; } = false;
        // 消息类型
        public int MessageType { get; set; } = 0;
        // 消息内容
        public string Message { get; set; } = "";
        // 消息是否可见（ -1全部可不见, 0全部可见, 1发送方不可见, 2接收方不可见 ）
        public int IsVisible { get; set; } = 0;
        // 消息是否撤回
        public bool IsWithdraw { get; set; } = false;
        // 聊天时间
        public DateTime ChatedOn { get; set; } = DateTime.Now;
    }
}
